Scenario #9470: Global Admin Without Assumed Role Sees All Subjects

This scenario verifies that a global admin who has not assumed any role sees all subjects across all realms.

Properties

Expected

name value
expectedSubjectNames [
  { “name”: “hsh-alex_superuser” },
  { “name”: “hsh-fran_superuser” },
  { “name”: “tst-customer_admin_xxx” },
  { “name”: “/hsh-Hostmasters” },
  { “name”: “/xyz-Service” }
]

Fetch visible RBAC subjects

HTTP GET "/api/rbac/subjects" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "comment" : "a global admin without an assumed role",` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
[
  {
    "uuid" : "242a0005-0000-0000-0000-000000000005",
    "name" : "abc-peter.smith",
    "organization" : "abc",
    "type" : "USER"
  },
  {
    "uuid" : "27bf3e63-a89e-42b6-8881-42b192a6b2c4",
    "name" : "/abc-Team",
    "organization" : "abc",
    "type" : "GROUP"
  },
  {
    "uuid" : "242a0006-0000-0000-0000-000000000006",
    "name" : "def-peter.smith",
    "organization" : "def",
    "type" : "USER"
  },
  {
    "uuid" : "3be822db-5700-4da7-9eab-5d8956017996",
    "name" : "/def-Team",
    "organization" : "def",
    "type" : "GROUP"
  },
  {
    "uuid" : "40c21151-9f4b-50f2-9755-a69fcb7d4d7a",
    "name" : "hsadminng.provisioning.key",
    "organization" : "hsadminng",
    "type" : "API_KEY"
  },
  "..."
]

generated on 2026-08-10 01:37:49 for branch